﻿@model List<ServeNHL.Models.EVENT_CAT>
@{
    ViewBag.Title = "CategoryDashboard";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<div class="row">
    <div class="spacer7"></div>
    <div class="header col-lg-12 col-md-12 col-sm-12 col-xs-12">

        <div class="signupLogo">Manage Categories</div>
    </div>
</div>

<div class="spacer14"></div>
<table class="table-responsive table-striped" align="center">
    <thead>
        <tr>
            <td colspan="5" class="left"><input type="button" title="Add Event Category" value="Add Event Category" onclick="location.href='@Url.Action("AddCategory", "Events")'" /></td>
        </tr>
        <tr>
            <th>Name</th>
            <th>Status</th>
            <th>View</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
    </thead>

    <tfoot>
        <tr>
            <td colspan="5" class="left"><input type="button" title="Add Event Category" value="Add Event Category" onclick="location.href='@Url.Action("AddCategory", "Events")'" /></td>
        </tr>
        <tr>
            <th>Name</th>
            <th>Status</th>
            <th>View</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
    </tfoot>

    <tbody id="eventDashboardSummary">

        @if (Model != null)
        {
            foreach (var category in Model)
            {
                <tr>
                    <th>@Html.Raw(category.EVENT_CAT_NAME)</th>
                    <th>@Html.Raw(category.STATUS)</th>
                    <td>View</td>
                    <td>Edit</td>
                    <td>Delete</td>
                </tr>
            }
        }

    </tbody>
</table>
